package com.offcn.service.impl;

import com.offcn.entity.Order;
import com.offcn.mapper.OrderMapper;
import com.offcn.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("orderServiceImpl")
public class OrderServiceImpl implements OrderService {
     @Resource
     private OrderMapper orderMapper;

    @Override
    public int insertOrder(Order order) {
        return orderMapper.insertOrder(order);
    }

    @Override
    public List<Order> selectById(int uid) {
        return orderMapper.selectById(uid);
    }

    @Override
    public Order selectByKeyId(int id) {
        return orderMapper.selectByKeyId(id);
    }
}
